//
//  BaseViewController.h
//  ChinaBookingPhone
//
//  Created by 杨 锐 on 14-5-22.
//  Copyright (c) 2014年 xingheng. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
#import "Helpers.h"
#import "AppDelegate.h"
#import "Masonry.h"
#import "MBProgressHUD.h"
#import "PXAlertView.h"
#import "PXAlertView+Customization.h"
#import "UIImageView+WebCache.h"
#import "UIButton+WebCache.h"
#import "RootTabViewController.h"
#import "TTNavigationController.h"
#import "TLYShyNavBarManager.h"

@interface BaseViewController : UIViewController

//AppDelegate对象
@property(strong,nonatomic) AppDelegate *app;
//导航对象
@property(strong,nonatomic) TTNavigationController *TTNav;
//MBProgressHUD提示
@property(strong,nonatomic) MBProgressHUD *HUD;
//分页初始值
@property(assign,nonatomic) NSInteger currentPage;
//导航标题
@property(strong,nonatomic) UILabel   *navtitle;
//左导航按钮
@property(weak,nonatomic,)  UIButton  *leftButton;
//右导航按钮
@property(weak,nonatomic)   UIButton  *rightButton;

#pragma mark 设置左按钮点击
-(void)setleftButtonAction:(SEL)sel;

#pragma mark 设置右按钮点击
-(void)setRightButtonAction:(SEL)sel;

#pragma mark 隐藏导航
-(void)hideNaviBar:(BOOL)animated;

#pragma mark 显示导航
-(void)showNavBar:(BOOL)animated;

#pragma mark 自定义非系统原生导航
//不带左右按钮
-(UIView *)customNavigationNoButton:(NSString *)navTitle;
//带左右按钮
-(UIView *)customNavigation:(NSString *)navTitle;

#pragma mark 返回上一级
-(void)popView;

#pragma mark 关闭模态窗口
-(void)dismssView;

#pragma mark 设置tabbar角标
-(void)setTabarBadge:(NSInteger)index badgeValue:(NSString*)badgeValue;

#pragma mark 隐藏tabbar
-(void)setTabBarHidden;

#pragma mark 显示tabBar
-(void)showTabBar;

#pragma mark 自定义cell
- (UIView *)titleAndContent:(NSString *)title andContent:(NSString *)content withToAddress:(NSString *)toAddress;

@end
